package com.example.dmdomain;

import com.example.dmdomain.entity.ElectricityTimeSlot;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;


@Repository
public interface ElectricityTimeSlotRepository extends JpaRepository<ElectricityTimeSlot, String>, JpaSpecificationExecutor<ElectricityTimeSlot> {

	@Modifying
	@Transactional
	void deleteAllByProvinceAndCity(String province, String city);

}
